{% load set_value %}
{% if widget.label == '高' %}
    {% set color = 'red' %}
{% elif widget.label == '中' %}
    {% set color = 'orange' %}
{% else %}
    {% set color = 'green' %}
{% endif %}
<option value="{{ widget.value|stringformat:'s' }}"{% include "django/forms/widgets/attrs.html" %}
        data-content='<span><i style="width:10px;height:10px;border-radius:50%;background-color:{{ color }};
        display: inline-block;"></i> {{ widget.label }}</span>'>{{ widget.label }}</option>